<?php 
ini_set('max_execution_time',10000);
my_component_load('testing' , false);
my_component_load('paging' , false); 
my_component_load('xl_builder' , false);  
my_component_load('list_kalender' , false);   
my_component_load('tmn_realisasi' );
$task = isset($_GET['task']) ? $_GET['task'] : "";  
$tanggal = isset($_GET['tanggal']) ? $_GET['tanggal'] : "";  
$field = isset($_GET['field']) ? $_GET['field'] : "";  
$value = isset($_GET['value']) ? $_GET['value'] : "";  
$id = isset( $_GET['id'] ) ? $_GET['id']:  0;  
$periode_id = get_periode_gaji();
$karyawan_id = isset( $_GET['karyawan_id'] ) ? $_GET['karyawan_id']:  0;   
$modulname = "Penggajian _BN_ Waktu Kerja _BN_ Realisasi jadwal";
if($task == 'excel'){ 
	header("Content-Type: application/xls");
	header("Content-Disposition: attachment;filename=penggajian_waktu_kerja.xls");
	echo excel_hari_kerja($periode_id);
	exit;
}else{
	$content = list_karyawan_realisasi($periode_id);
}
generate_my_web($content, $modulname );